package com.cyl.wms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyl.wms.domain.Container;
import com.cyl.wms.domain.Loader;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 容器Mapper接口
 * 
 * @author zcc
 */
public interface ContainerMapper extends BaseMapper<Container> {
    /**
     * 查询容器列表
     *
     * @param container 容器
     * @return 容器集合
     */
    List<Loader> selectByEntity(Container container);

    /**
     * 批量软删除
     * @param ids
     * @return
    */
    int updateDelFlagByIds(@Param("ids") Long[] ids);

    Container selectContainerByCode(@Param("containerCode")String containerCode);

    Container findOneByLoaderId(Long id);
}
